<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:xhtml/>

<div class="merchants">
	<logic:iterate id="merchant" name="merchants">
		<div class="merchant">
			<a class="title" href="/<bean:write name="mooralContext" property="applicationName"/>/merchant/<bean:write name="merchant" property="slug"/>">
				<bean:write name="merchant" property="name" />
			</a>
			<a class="logo" href="/<bean:write name="mooralContext" property="applicationName"/>/merchant/<bean:write name="merchant" property="slug"/>">
				<logic:present name="merchant" property="logo">
					<img src="<bean:write name="merchant" property="logo"/>"/>
				</logic:present>
				<logic:notPresent name="merchant" property="logo">
					<img src="/<bean:write name="mooralContext" property="applicationName"/><bean:write name="merchant" property="logoDefault"/>"/>
				</logic:notPresent>
			</a>	
			<a href="/<bean:write name="mooralContext" property="applicationName"/>/merchant/<bean:write name="merchant" property="slug"/>">
				<bean:write name="merchant" property="name" />
			</a>
			<div class="description">
				<bean:write name="merchant" property="description" />
			</div>
		</div>
	</logic:iterate>
</div>